{% extends "users/base.html" %}
{% if duplicate %}
  {% set title = _('Unable to change email for user {username}')|f(username=username) %}
{% else %}
  {% set title = _('Email changed for user {username}')|f(username=username) %}
{% endif %}
{% set classes = 'register' %}
{% if user.is_authenticated() %}
  {% set crumbs = [(profile_url(user), user.username),
                   (None, title)] %}
{% else %}
  {% set crumbs = [] %}
{% endif %}

{% block content %}
  <div class="grid_9">
    <article id="register" class="main">
      <h1>{{ title }}</h1>
      <p>
        {% if duplicate %}
          {{ _('The email you entered ({new_email}) already exists in the system. The current email for your account is still {old_email}.')|f(
               old_email=old_email, new_email=new_email) }}
        {% else %}
          {{ _('Your email has been changed from {old_email} to {new_email}.')|f(
               old_email=old_email, new_email=new_email) }}
        {% endif %}
      </p>
    </article>
  </div>
{% endblock %}
